<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>获取最小值</title>
    <script>
        function getMin(){
            var getSum = arguments[0];
            for(var i = 1;i<arguments.length;i++){
                if(arguments[i]<getSum){
                    getSum = arguments[i];	
                }
            }
            return getSum;
        }
        var getSum = getMin(20,34,-3,15,99,45,77);
        document.write("最小值: "+getSum+"<br>");
    </script>
</head>

<body>

</body>

</html>